<?php

defined('SYSPATH') or die('Access error!');


Route::set('question', 'question(/<action>(/<id>))')
        ->defaults(array(
            'controller' => 'question',
            'action' => 'list'
        ));

Route::set('answer', 'answer(/<action>(/<id>))')
        ->defaults(array(
            'controller' => 'answer',
            'action' => 'answer'
        ));

Route::set('comment', 'comment(/<action>(/<id>))')
        ->defaults(array(
            'controller' => 'comment',
            'action' => 'add'
        ));

Route::set('tag', 'tag(/<action>(/<id>))')
        ->defaults(array(
            'controller' => 'tag',
            'action' => 'list'
        ));


